<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>浏览</title>
    <link rel="stylesheet" href="./css/lb.css">
    
    
</head>
<body>
    <p ><a href="./index.html" class="got-started" >Back</a></p>
   
    <div id="app">  
        <img :src="'images/portfolio/'+pics[order]" class="img-responsive">
        <div class="button" id="left" v-show="order!=0" @click="btnLeft">&lt;</div>
        <div class="button" id="right" v-show="order<pics.length-1" @click="btnRight">&gt;</div>
    </div>
    <script src="./js/vue.js"></script>
    <script>
        let app = new Vue({
            el: '#app',
            data: {
                pics:['01.jpg', '02.jpg', '03.jpg', '04.jpg','05.jpg','06.jpg'],
                order: 0,

            },
            methods:{
                btnLeft:function(){
                    this.order--;
                },
                btnRight:function(){
                    this.order++;
                }
            }
        })
    </script>
    <!-- <script src="js/bootstrap.min.js"></script> -->
</body>
</html>